#include<iostream>
#include<string>
using namespace std;

string version1(const string& s1, const string& s2);
const string& version2(string& s1, const string& s2);
const string& version3(string& s1, const string& s2);



int main()
{
    string input;
    string copy;
    string ans;

    cout << "input s string: ";
    getline(cin, input);
    copy = input;
    cout << "You input string: " << input << endl;
    ans = version1(input, "*****");
    cout << "origin input:" << input << endl;
    cout << "ans : " << ans << endl;

    ans = version2(input, "######");
    cout << "origin input:" << input << endl;
    cout << "ans : " << ans << endl;
    cout << "reseting input\n";
    input = copy;
    ans = version3(input, "@@@@@@");
    cout << "origin input:" << input << endl;
    cout << "ans : " << ans << endl;   

    return 0;
}

string version1(const string& s1, const string& s2)
{
    string temp;
    temp = s2 + s1 + s2;
    return temp;
}
const string& version2(string& s1, const string& s2)
{
    s1 = s2 + s1 + s2;
    return s1;
}
const string& version3(string& s1, const string& s2)
{
    string temp;
    temp = s2 + s1 + s2;
    return temp;    
}